
import { createStackNavigator } from 'react-navigation-stack';
import { Themed, createSwitchNavigator } from 'react-navigation';
import Welcome from './modules/welcome.page';
import DynamicTab from './dynamic.tab';
import Other from './modules/other.page';
import MainStack from './main.route';
import AntDStack from './modules/antd/antd.route';

const Route = createSwitchNavigator(
  {
    welcome: {
      screen: Welcome,
    },
    // tab: {
    //   screen: DynamicTab, // TabNav, //DynamicTab, // 
    //   navigationOptions: {//在这里定义每个页面的导航属性，静态配置
    //     title: "This is TabNavigator.",
    //   },
    // },
    main: {
      screen: MainStack,
    },
    other: {
      screen: Other,
      navigationOptions: {
        title: "This is Other.",
      },
    },
    antd: {
      screen: AntDStack,
      navigationOptions: {
        title: "Ant Design",
      },
    },
  },
  {
    defaultNavigationOptions: {
      // headerShown: false,
    },
  },
);

export default Route;
